<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*,com.autoMobile.bean.ddmUser" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>用车申请记录</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css">
</head>
<body>
    <div class="records-container">
        <div class="records-header">
            <h2>用车申请记录</h2>
        </div>

        <div class="table-responsive">
            <table class="table">
                <thead>
                    <tr>
                     
                        <th>申请人</th>
                        <th>车牌号</th>
                        <th>用途</th>
                        <th>开始时间</th>
                        <th>结束时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                <c:forEach items="${list}" var="user">
                    <tr>
                    

                    
                        <td>${user.username }</td>
                        <td>${user.message}</td>
                        <td>${user.shiyong }</td>
                        <td>${user.stime }</td>
                        <td>${user.otime }</td>
                      
                        <td><span class="status-tag status-using">${user.status}</span></td>
                         <td><a href="<%=request.getContextPath() %>/ddm/editUser?id=${user.id }">编辑||</a>
                          <a href="<%=request.getContextPath() %>/ddm/deleteServlet?id=${user.id }">删除</a></td>
                    </tr>
                    </c:forEach>
                </tbody>
            </table>
        </div>

       
    </div>
</body>
</html> 